package com.godyao.mall.order.service;

import com.godyao.mall.order.model.Order;
import com.godyao.mall.order.mq.msg.SeckillMessage;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

/**
 * @author godyao
 * @date 2022/4/1
 */
public interface IOrderService {
    Page<Order> findAll(Specification spec, Pageable pageable);

    Order findOrderById(Long id);

    Order makeOrder(Order order);

    void makeOrder(SeckillMessage seckillMessage);

    void delById(Long id);

    void checkOrderStatus(long orderId);
}
